﻿<%@ page title="" language="C#" masterpagefile="~/master/amc_app.master" autoeventwireup="true" inherits="pages_complaintSummary, App_Web_pzmkbaed" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="../_scripts/app/complaint.js" type="text/javascript"></script>
    <script src="../_scripts/app/search.js" type="text/javascript"></script>
    <link href="../App_Themes/main/addcustomer.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/main/search.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            $('.placeholderMenuItem_Clicked').removeClass('placeholderMenuItem_Clicked');
            $('#menuComplaints').attr('class', 'placeholderMenuItem_Clicked');
            $('#txtSelectDate').datepicker({ dateFormat: "dd/mm/yy" }).datepicker("setDate", new Date());
        });

        function printComplaint() {
            var display_setting = "toolbar=no,location=no,directories=no,menubar=no,";
            display_setting += "scrollbars=no,width=750, height=600, left=100, top=25";

            var content_innerhtml = document.getElementById("allCustomerGrid").innerHTML;
            var document_print = window.open("", "", display_setting);
            document_print.document.open();
            document_print.document.write('<html><head><title>Customer Complaints</title></head>');
            document_print.document.write('<body style="font-family:verdana; font-size:12px;" >');
            document_print.document.write(content_innerhtml);
            document_print.document.write('</body></html>');
            document_print.print();
            document_print.document.close();
            return false;
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="searchContentContainer">
    <div class="customerGridContainer">
    <div style="margin-top:10px; margin:15px;">
        <span class="addCustomerFormText" style="width:65px;"><span style="color:Red;">*</span>Filter By</span>
            <div class="addCustomerFormInputDiv">
            <select id="ddlFilters" class="addCustomerFormInput" onchange="onchangeFilter(this);">
                <option selected="selected">Select Filter</option>
                <option>Scheduled Date</option>
                <option>Route</option>
                <option>Status</option>
                <option>Customer</option>
            </select>
            </div>
            <div id="showDateFilter" style="display:none;">
            <span class="addCustomerFormText" style="width: 120px;"><span style="color:Red;">*</span>Select date</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtSelectDate" type="text" class="addCustomerFormInput" /></div>
            <div id="applyDateFilter" class="adminColorButton">Apply Filter</div>
            </div>
            <div id="showRouteFilter" style="display:none;">
            <span class="addCustomerFormText" style="width: 130px;"><span style="color:Red;">*</span>Enter route name</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtRouteName" type="text" class="addCustomerFormInput" /></div>
            <div id="btnApplyRouteFilter" class="adminColorButton">Apply Filter</div>
            </div>

            <div id="divStatusFilter" style="display:none;">
            <span class="addCustomerFormText" style="width: 130px;"><span style="color:Red;">*</span>Select Status</span>
            <div class="addCustomerFormInputDiv" style="width:auto;">
            <select id="ddlStatusFilter" class="addCustomerFormInput">
                <option selected="selected">Open</option>
                <option>Closed</option>
                <option>Pending</option>
                <option>No Solution</option>
            </select>
            <div id="Div2" class="adminColorButton">Apply Filter</div>
            </div>
            </div>

            <div id="divCustomerNameFilter" style="display:none;">
            <span class="addCustomerFormText" style="width: 130px;"><span style="color:Red;">*</span>Customer Name</span>
            <div class="addCustomerFormInputDiv">
            <input id="txtCustomerNameFilter" type="text" class="addCustomerFormInput" /></div>
            <div id="Div4" class="adminColorButton">Apply Filter</div>
            </div>

            
    </div>
        <div class="pendingCaseGridContainer" style="margin-left:10px;">
            <div class="pendingCaseGridContainerDiv">
                <div class="pendingCaseGridHeader" style="width:980px;">
                    <span class="dashboardAlertText">Complaint Summary</span>
                </div>
                <div class="pendingCaseGridTblHeader" style="width: 1000px; height:35px; font-size:10px;">
                    <span class="pendingCaseGridTblText" style="width: 55px;padding-top:0px;">Complaint ID</span>
                    <span class="pendingCaseGridTblText" style="padding-top:6px;">Customer</span>
                    <span class="pendingCaseGridTblText" style="width: 150px;padding-top:6px;">Address & Contacts</span>
                    <span class="pendingCaseGridTblText" style="width: 150px;padding-top:6px;">Route</span>
                    <span class="pendingCaseGridTblText" style="width: 150px;padding-top:6px;">Product</span>
                    <span class="pendingCaseGridTblText" style="width: 200px;padding-top:6px;">Complaint</span>
                    <span class="pendingCaseGridTblText" style="width: 70px;">Scheduled date</span>
                </div>
                <div id="allCustomerGrid" class="pendingCaseRepeaterDiv" style="min-height:300px;">
                    <asp:PlaceHolder ID="phSplComplaintGrid" runat="server"></asp:PlaceHolder>
                </div>
            </div>
        </div>
        <div class="addCustomerFormButtonContainer">
            <div class="adminGrayButton" onclick="printComplaint();">Print</div>
            <div id="saveCustomerData" class="adminColorButton" onclick="window.location.href = '../../pages/complaints.aspx';">New Complaint</div>
        </div>
    </div>
</div>
</asp:Content>

